a=input("输入一段字符串：")
letter=[]
number=[]
white_space=[]
other=[]
for b in a:
    if b>='a' and b<='z' or b>='A' and b<='Z':
        letter.append(b)
    elif b in '0123456789':
        number.append(b)
    elif b==' ':
        white_space.append(b)
    else:
        other.append(b)
c=len(letter)
d=len(number)
e=len(white_space)
f=len(other)
print('letter:%s个'%c)
print('number:%s个'%d)
print('white_space:%s个'%e)
print('other:%s个'%f)
